package herguan.expertadvise.web.struts.form;
import herguan.expertadvise.dao.hibernate.Skill;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class DisplaySkillForm extends ActionForm 
{
	private String action = "add";
	
	private String question ;
	
	

	private List<Skill> objSkill=new ArrayList<Skill>();

    public List<Skill> getSkill() {
        return objSkill;
    }

    public void setSkill(List<Skill> pSkill) {
        this.objSkill = pSkill;
    }
    
    private int providerid ;
    
   /* public void setSkill(String[] iteml) {
        System.out.println(iteml[0]);
    }*/
	
	/*private String[] objSkill;

    public String[] getSkills() {
        return objSkill;
    }

    public void setSkills(String[] pSkill) {
    	this.objSkill=new String[pSkill.length];
        this.objSkill = pSkill;
    }*/
    
   
    
	public int getProviderid() {
		return providerid;
	}

	public void setProviderid(int providerid) {
		this.providerid = providerid;
	}

	public DisplaySkillForm()
	{	
				
	}
	
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		this.action = "add";
		 
	}
	
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors errors = new ActionErrors();

		return errors;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}
	
	private String[] item;
	   private int number;

	    public int getNumber() {
	        return number;
	    }

	    public void setNumber(int number) {
	        this.number = number;
	    }
	   

	    public String[] getItem() {
	        return item;
	    }

	    public void setItem(String[] item) {
	        this.item=new String[item.length];
	        this.item = item;
	    }

	    public String getQuestion() {
			return question;
		}

		public void setQuestion(String question) {
			this.question = question;
		}

	


   
    
	
	

}
